package person.bing.fbcloud.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import person.bing.fbcloud.common.core.util.R;
import person.bing.fbcloud.entity.SysLog;
import person.bing.fbcloud.service.SysLogService;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author mengfb
 * @since 2020-05-18
 */
@RestController
@RequestMapping("/sysLog")
public class SysLogController {
    @Autowired
    private SysLogService sysLogService;

    @PostMapping
    public R addSyslog(@RequestBody SysLog sysLog){
        sysLogService.save(sysLog);
        return new R();
    }

}
